<?php
/**
 * Created by PhpStorm.
 * User: edmmss
 * Date: 2018/11/20
 * Time: 18:15
 */

namespace app\modules\dataMapper;


class StorageAdapter
{
    private $_data = [];

    public function __construct(array $data)
    {
        $this->_data = $data;
    }

    public function find(int $id)
    {
        return isset($this->_data[$id]) ? $this->_data[$id] : null;
    }
}